import axios from '@/libs/api.request'

//保存或更新部门信息
export const saveDeptInfo = (data) => {
  return axios.request({
    url: 'sysDept/saveDeptInfo',
    method: 'post',
    data
  })
}
//获取组织架构树
export const getDeptTree = (data) => {
  return axios.request({
    url: 'sysDept/getDeptTree',
    method: 'post',
    data
  })
}
//获取组织架构树(排除子节点)
export const getExceptChildTree = (data) => {
  return axios.request({
    url: 'sysDept/getExceptChildTree',
    method: 'post',
    data
  })
}
//删除组织部门信息
export const deleteDept = (data) => {
  return axios.request({
    url: 'sysDept/deleteDept',
    method: 'post',
    data
  })
}
